

class BallMeshInfo{
    constructor(r,segments = 32){
        this.radius = r;

        let ball = new cc.primitives.sphere(r,{segments:segments});
        this.vertexs = ball.positions;
        this.indices = ball.indices;
        this.normals = ball.normals;
        this.min = [ball.minPos.x,ball.minPos.y,ball.minPos.z];
        this.max = [ball.maxPos.x,ball.maxPos.y,ball.maxPos.z];
    }
}

export default BallMeshInfo;
